﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Nage.Algorithms.Solution;
using Nage.Algorithms.Population;

namespace Nage.Algorithms.Evolution
{    
    /// <summary>
    /// Solution mutation interface. When implemented, defines how
    /// each solution should mutate in time.
    /// </summary>
    /// <typeparam name="TSol">Type of the solution</typeparam>
    public interface ISolutionMutation<TSol> where TSol : ISolution
    {
        /// <summary>
        /// Mutates given solution and returns a new, mutated inididual.
        /// Note that method should not affect the parameter
        /// </summary>
        /// <param name="solution">Solution to muatate</param>
        /// <returns></returns>
        TSol Mutate(TSol solution);
    }
}
